package com.testdemo.testdemo.pojo;

import org.junit.Test;

public class Test1 {

    @Test
    public void t1() {
        Long l1 = 128L;
        Long l2 = 128L;
        System.out.println(l1 == l2);
    }

    @Test
    public void t2() {
        Long l1 = -128L;
        Long l2 = -128L;
        System.out.println(l1 == l2);
    }

    @Test
    public void t3() {
        String s1 = "qwer";
        String s2 = new String("qwer");
        String s3 = "qwer";
        String s4 = new String("qwer");
        System.out.println(s1 == s2);
        System.out.println(s1 == s3);
        System.out.println(s2 == s4);
        System.out.println("qwer" == "q" + "wer");

        StringBuilder s5 = new StringBuilder("qwer");
        System.out.println(s5.equals("qwer"));

    }

}
